package com.vcms.cms.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Keyword entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "keyword", catalog = "vcms_0.1")
public class Keyword implements java.io.Serializable {

	// Fields

	private Integer keywordId;
	private Site site;
	private String keywordName;
	private String url;
	private Boolean isDisabled;

	// Constructors

	/** default constructor */
	public Keyword() {
	}

	/** full constructor */
	public Keyword(Site site, String keywordName, String url, Boolean isDisabled) {
		this.site = site;
		this.keywordName = keywordName;
		this.url = url;
		this.isDisabled = isDisabled;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "keywordId", unique = true, nullable = false)
	public Integer getKeywordId() {
		return this.keywordId;
	}

	public void setKeywordId(Integer keywordId) {
		this.keywordId = keywordId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "siteId")
	public Site getSite() {
		return this.site;
	}

	public void setSite(Site site) {
		this.site = site;
	}

	@Column(name = "keywordName", length = 100)
	public String getKeywordName() {
		return this.keywordName;
	}

	public void setKeywordName(String keywordName) {
		this.keywordName = keywordName;
	}

	@Column(name = "url", length = 300)
	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Column(name = "isDisabled")
	public Boolean getIsDisabled() {
		return this.isDisabled;
	}

	public void setIsDisabled(Boolean isDisabled) {
		this.isDisabled = isDisabled;
	}

}